class SimulationsForeignKeys < ActiveRecord::Migration
  def self.up
  	execute "ALTER TABLE simulations ADD CONSTRAINT fk_simulations_systems FOREIGN KEY (system_id)
  					REFERENCES systems(id) ON DELETE CASCADE"
  end

  def self.down
  	execute "ALTER TABLE simulations DROP CONSTRAINT fk_simulations_systems"	
  end
end
